<#include "/layout/header.ftl" />
<#import "/include/ui.ftl" as blue />

<script>

function search_click()
{
	var obj = $.getObject("#div_search");	
	$("#div_grid").simpleLoad("/base/user/address_list", obj, 0);
	
}
</script>

<div class="am-g am-cf am-margin-top am-margin-bottom">
	<div class="am-u-sm-3 am-padding-right-0">
		<div class="am-form-group">
			<a href="${path}/base/user/user_list" class="am-btn am-btn-danger am-radius">返回</a>
		</div>
	</div>
	<div class="am-u-sm-9 am-form-inline" id="div_search">
		<div class="am-form-group">
			<span class="am-text-xxl">${model.mobile!} - ${model.nickname!}</span>
		</div>

	</div>
</div>

<div class="am-g" id="div_grid">
	<div class="am-u-sm-12">
		<table class="am-table am-table-striped am-table-hover">
			<thead>
			<tr>
				<th width="60">序号</th>
				<th width="100">名称</th>
				<th width="100">收货人</th>
				<th width="200">所属区域</th>
				<th>详细地址</th>
				<th width="180">手机号码</th>
				<th width="300">电子邮箱</th>
				<th width="100">状态</th>
				<th width="100">是否默认</th>
				<th width="150">操作</th>
			</tr>
			</thead>
			<tbody>
			<#list addressList as vo>
			<tr>
				<td>${vo_index+1}</td>
				<td title="${vo.name!}">${vo.name!}</td>
				<td title="${vo.consignee!}">${vo.consignee!}</td>
				<td title="${vo.allArea!}">${vo.allArea!}</td>
				<td title="${vo.address!}">${vo.address!}</td>
				<td title="${vo.mobile!}">${vo.mobile!}</td>
				<td title="${vo.email!}">${vo.email!}</td>
				<td >${vo.state!}</td>
				<td >${vo.def!}</td>
				<td>
					<div class="am-btn-group">
						<a href="${path}/base/user/address_get?id=${vo.id}" class="am-btn am-btn-primary am-btn-sm am-radius">查看</a>
					</div>
				</td>
			</tr>
			</#list>
			</tbody>
		</table>
	</div>
</div>

<#include "/layout/footer.ftl" />